home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / PREMAKE < prev    next >
Text File  |  1997-07-30  |  925b  |  43 lines

  1. #!/bin/sh
  2.  
  3. echo "Preparing your TNOS source tree for initial 'make'...."
  4. echo
  5.  
  6. echo "First step: remove any files that need to be customized for your site"
  7. echo "    Deleting 'config.h', just in case it exists"
  8. rm -f config.h
  9. echo "    Deleting 'catalog.h', just in case it exists"
  10. rm -f catalog.h
  11. echo "    Deleting 'hardware.h', just in case it exists"
  12. rm -f hardware.h
  13. echo
  14.  
  15. echo "Second step: setup OS-dependent Makefile for Unix"
  16. echo "    Creating Makefile from makefile.unx"
  17. rm -f Makefile
  18. ln -s makefile.unx Makefile
  19. echo
  20.  
  21. echo "Third step: create an initial 'make.inc' file"
  22. MAKE=make
  23. export MAKE
  24. if ( make -v >/dev/null 2>&1 );
  25. then
  26.     :
  27. else
  28.     MAKE=gmake
  29.     if ( gmake -v >/dev/null 2>&1 );
  30.     then
  31.         :
  32.     else
  33.         echo "    Sorry, but GNU make not found!"
  34.         echo "    You will need to do a 'make make.inc' with GNU make.!"
  35.         exit 1
  36.     fi
  37. fi
  38. ${MAKE} make.inc 2>/dev/null
  39. echo
  40.  
  41. echo "Premake complete!"
  42.  
  43.